#ifndef CHAT_ROOM_H
#define CHAT_ROOM_H

#include <QWidget>
#include <QTcpSocket>
#include <QHostAddress>
#include <QInputDialog>
#include <QLineEdit>
#include <QString>
#include <cstring>
#include <QUdpSocket>
#include <QHostInfo>

namespace Ui {
class chat_room;
}

class chat_room : public QWidget
{
    Q_OBJECT

public:
    explicit chat_room(QWidget *parent = nullptr);
    void onSendClicked();
    void dialog();
    ~chat_room();
private slots:
    void on_push_clicked();
    void onReadyRead();

private:
    Ui::chat_room *ui;
};

#endif // CHAT_ROOM_H
